import time
from gpiozero import LED

count = 0
led = LED("GPIO17")
led.off()

while True:
   count = count + 1
   time.sleep(0.01)

   if count<=10:
      led.on()
   elif count<=20:
      led.off()
   else:
      count = 0
